package com.example.simple.work.entity;

import java.io.Serializable;
import java.util.Objects;

/** 设备登记 */
public class Facility extends BaseEntity implements Serializable {
    private Integer id;
    private String employeeName;
    private String employeeId;
    private String notebookId;
    private String mouseId;
    private Integer isDelete;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getNotebookId() {
        return notebookId;
    }

    public void setNotebookId(String notebookId) {
        this.notebookId = notebookId;
    }

    public String getMouseId() {
        return mouseId;
    }

    public void setMouseId(String mouseId) {
        this.mouseId = mouseId;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Facility)) return false;
        if (!super.equals(o)) return false;
        Facility facility = (Facility) o;
        return Objects.equals(getId(), facility.getId()) && Objects.equals(getEmployeeName(), facility.getEmployeeName()) && Objects.equals(getEmployeeId(), facility.getEmployeeId()) && Objects.equals(getNotebookId(), facility.getNotebookId()) && Objects.equals(getMouseId(), facility.getMouseId()) && Objects.equals(getIsDelete(), facility.getIsDelete());
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), getId(), getEmployeeName(), getEmployeeId(), getNotebookId(), getMouseId(), getIsDelete());
    }

    @Override
    public String toString() {
        return "Facility{" +
                "id=" + id +
                ", employeeName='" + employeeName + '\'' +
                ", employeeId='" + employeeId + '\'' +
                ", notebookId='" + notebookId + '\'' +
                ", mouseId='" + mouseId + '\'' +
                ", isDelete=" + isDelete +
                '}';
    }
}
